<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PhotoAddEdit.ascx.cs" Inherits="IGlobalist.Cms.Admin.Control.PhotoAddEdit" %>
<%@ Register Src="CmsExtPropertiesForm.ascx" TagName="CmsExtPropertiesForm" TagPrefix="uc1" %>
<asp:HiddenField runat="server" ID="hdfCategoryID" Value="0" />
<table class="frame">
    <tr>
        <td align="center">
               <asp:Label runat="server" ID="lblStatus" ForeColor="#1A5688" Font-Bold="True" Font-Size="Medium"/>
        </td>
    </tr>
    <tr>
        <td valign="top">
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" />
        <fieldset id="fsMain" runat="server">
            <legend><asp:Label ID="lbMain"  runat="server"  Text="Photo info"></asp:Label> </legend>
                <table cellpadding="2" cellspacing="2">                   
                   
                    <tr>
                        <td>
                            <asp:Label ID="lbName" runat="server" Text="Name"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="tbName" runat="server"></asp:TextBox>                            
                            <asp:RequiredFieldValidator ID="rfvName" runat="server" ErrorMessage="must enter name" ControlToValidate="tbName" >*</asp:RequiredFieldValidator>                             
                        </td>
                    </tr>
                    <tr>
                        <td valign="top" >
                            <asp:Label ID="lbDescription" runat="server" Text="Description"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="tbDescription" runat="server" Rows="4" Height="100px" TextMode="MultiLine"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lbParent" runat="server" Text="Parent"></asp:Label>  
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlParent" runat="server" >
                            
                            </asp:DropDownList>
                        </td>
                    </tr>   
                    <tr>
                        <td>
                            <asp:Label ID="lbOrder" runat="server"  Text="Order" ></asp:Label> 
                        </td>
                        <td>
                            <asp:TextBox ID="tbOrder" runat="server" Text="0" MaxLength="3"></asp:TextBox>  
                            <asp:RangeValidator ID="rvOrder" runat="server" MaximumValue="999" MinimumValue="0" ErrorMessage="Order must be number" ControlToValidate="tbOrder" Type="Integer">*</asp:RangeValidator>     
                        </td>
                    </tr>   
                    
                     <tr>
                        <td>
                            <asp:Label ID="Label1" runat="server"  Text="Image" ></asp:Label> 
                        </td>
                        <td>
                            <asp:Image ID="imgPhoto" runat="server" Visible="false" /><br />
                           <asp:FileUpload runat="server" ID="fuFile"  Size="60"/> 
                        </td>
                    </tr>   
                          
               </table>   
        </fieldset> 
        </td>
    </tr>
    <asp:Panel ID="pnlExt" runat="server" Visible="false" >
    <tr>
        <td>
            <fieldset id="fsExt" runat="server">
                <legend><asp:Label ID="lbExt"  runat="server"  Text="Ext Properties"></asp:Label> </legend>               
                <uc1:CmsExtPropertiesForm ID="ucCmsExtPropertiesForm" runat="server" />
            </fieldset> 
        </td>
    </tr>   
    </asp:Panel>
</table> 